#include "StdAfx.h"
#include ".\worldserversession.h"
#include ".\PacketHandler.h"

WorldServerSession::WorldServerSession(void)
{
}

WorldServerSession::~WorldServerSession(void)
{
}

VOID WorldServerSession::OnRecv( BYTE * pMsg, WORD wSize )
{
	PacketHandler::Instance()->ParsePacket( PACKET_HANDLER_WORLD, this, (MSG_BASE *)pMsg, wSize );
}


VOID WorldServerSession::DBResult( BYTE cate, BYTE ptcl, QueryResult * pData )
{
	MSG_DBPROXY_RESULT msg;
	msg.m_byCategory	= cate;
	msg.m_byProtocol	= ptcl;
	msg.m_pData			= pData;
	PacketHandler::Instance()->ParsePacket( PACKET_HANDLER_WORLD, this, &msg, sizeof(MSG_DBPROXY_RESULT) );
}